﻿using System;
using System.IO;

namespace Automator.Runtime
{
    /// <summary>
    /// Static class for global variables like paths
    /// </summary>
    public static class Environment
    {
        static Environment()
        {
            if (!Directory.Exists(xmlDir))
                Directory.CreateDirectory(xmlDir);
            if (!Directory.Exists(addinsDir))
                Directory.CreateDirectory(addinsDir);
        }

        public static string xmlDir
        {
            get { return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Xml"); }
        }

        public static string schemasDir
        {
            get { return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Schemas"); }
        }

        public static string addinsDir
        {
            get { return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Addins"); }
        }
    }
}
